<!--
 * @FilePath     : /study_code/layui/6-419.html
 * @Description  : scrollbar 层是否随浏览器滚动而滚动
 * @Date         : 2025-04-08 17:33:58
 * @Author       : Fang YingGui
 * @LastEditors  : fangyinggui 18715384437@163.com
 * @LastEditTime : 2025-04-09 08:37:04
-->
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>documentName</title>
    <link rel="stylesheet" href="/layui/dist/css/layui.css" />
    <style>
      body {
        height: 2000px;
      }
    </style>
  </head>
  <body>
    <script>
      // type参数
      layui.use('layer', function () {
        var layer = layui.layer,
          $ = layui.$

        layer.open({
          type: 0,
          content: '<div>文字信息22</div>',

          /**
           * @brief: 是否允许浏览器出现滚动条
           * @value {boolean}
           * true （默认）允许浏览器滚动
           * false 弹窗打开后，不允许浏览器出现滚动条
           */
          scrollbar: false,
          // scrollbar: true,
        })
      })
    </script>
  </body>
</html>
